﻿@{
    ViewBag.Title = "开通节点商城";
    Layout = "~/Views/Shared/_MallLayout.cshtml";
    decimal needRedDrill = ViewBag.needRedDrill;
    task_dto task = ViewBag.task;
}

<body class="page-inviteIn">
    <div class="invitedIn">
        <div class="content">
            <div class="item mb40">
                <div class="title fn-center">
                    <i class="icon-invTit mr10"></i>
                    <span class="fn40 mr10">开通说明</span>
                    <i class="icon-invTit invTit"></i>
                </div>
                <div class="item-p relative fn30">
                    <i class="rou"></i>
                    <div>即日起，只需有红钻即可入驻节点商城 </div>
                </div>
                <div class="item-p relative fn30">
                    <i class="rou"></i>
                    <div>成功升级额外获赠 @(task != null ? task.soup_value : 100) 马力</div>
                </div>
                <div class="item-p relative fn30">
                    <i class="rou"></i>
                    <div>马力有效期90天（3个月） </div>
                </div>
            </div>
            <div class="item">
                <div class="title fn-center">
                    <i class="icon-invTit mr10"></i>
                    <span class="fn40 mr10">入驻商城权益</span>
                    <i class="icon-invTit invTit"></i>
                </div>
                <div class="item-p relative fn30">
                    <i class="rou"></i>
                    <div>轻松开店</div>
                    <p class="fn28">低门槛创业，不用为IT技术烦恼</p>
                </div>
                <div class="item-p relative fn30">
                    <i class="rou"></i>
                    <div>云商品库</div>
                    <p class="fn28">汇集10000+境外好货，不用为货源烦恼</p>
                </div>
                <div class="item-p relative fn30">
                    <i class="rou"></i>
                    <div>供应链</div>
                    <p class="fn28">采购/仓储/物流/清关服务全包，不用为供应链烦恼</p>
                </div>
                <div class="item-p relative fn30">
                    <i class="rou"></i>
                    <div>用户流量</div>
                    <p class="fn28">共享平台用户流量，不用为客源烦恼</p>
                </div>
            </div>

            <div class="btnBox">
                @if (task != null && task.is_complete) {
                    <div class="btnBox col-white fn-center fn26">
                        提示：请在"个人中心"进入"我的商城"管理商城
                    </div>
                    @*<a href="/shopinfo/shopmanage" class="ui-btn ui-btn-big ui-btn-red">进入我的节点商城</a>*@
                } else {
                    <a href="/Task/OpenSupplierPay" class="ui-btn ui-btn-big ui-btn-red">购买节点商城 <em class="fn24">(@(needRedDrill.ToString("0.######"))红钻)</em></a>
                }
            </div>
        </div>
    </div>
</body>

<script type="text/javascript">
    $(function () {
        //防止后退
        var browser = {
            versions: function () {
                var u = navigator.userAgent, app = navigator.appVersion;
                return {
                    //移动终端浏览器版本信息
                    trident: u.indexOf('Trident') > -1, //IE内核
                    presto: u.indexOf('Presto') > -1, //opera内核
                    webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                    gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
                    mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
                    ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                    android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
                    iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
                    iPad: u.indexOf('iPad') > -1, //是否iPad
                    webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部,
                    WeiXin: u.match(/MicroMessenger/i) == "MicroMessenger" //是否为微信客户端
                };
            }(),
            language: (navigator.browserLanguage || navigator.language).toLowerCase()
        };

        //防止页面后退
        history.pushState(null, null, document.URL);
        window.onpopstate = function (e) {
            try {
                if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
                    window.webkit.messageHandlers.gohome.postMessage('');
                }
                else if (/(Android)/i.test(navigator.userAgent)) {
                    androidfuntion.gohome();
                }
            } catch (e) {
                history.go(-1);
            }
        }
    })
</script>

